<?php


namespace App\Helper;


class RedisConst
{

    // key以片区归组
    /**
     * --------------------------------------------------------------------------
     * db0
     * --------------------------------------------------------------------------
     */
    //置顶帖
    const TOPPOST = 'top_post';
    const YUNXIN = 'yunxin:';
    //广告
    const ADVERT='startadvert.';
    //多条广告
    const ADVERT_MUTI='startadvertmuti.';
    const POST_CHALLENGE='challenge:posts.';
    const ACTIVE_RANKING='active:ranking';
    const TEMP_ACTIVE_RANKING='active:temp_ranking'; //纠正数据临时存放排行榜数据
    const ROBOTSET='robotSet';
    const TEMPFOLLOWMQ='tempfollowMQ';
    const GOODSNUM='goodsnum.';
    const LOGISTIC_LINK =  'logistic:link';
    const FORBIDDENMEMBER = 'forbidden:member.'; //封号用户
    const BANMEMBER = 'ban:member.'; //禁言用户
    //阅读数
    const NEWSREADNUM = 'news:readnum.';
    //评论点赞数
    const ANSWERBASICPRAISENUM = 'answer:basicpraisenum.';
    const TEMP_POST='temp:post'; //临时post信息 challenge 模块使用
    const ICON = 'icon:'; //根据类型获取图片标识
    const ICON_EXPIRE = 86400; //根据类型获取图片标识过期时间
    const BRAND_TOPIC = 'brand_topic:';
    const NORMAL_EXPIRE = 86400;
    const TOPIC_OPINION_NUM = 'topicOpinionNum';
    const TOPIC_JOIN_NUM = 'topicJoinNum';

    //话题浏览量基数
    const TOPICBASICVIEWNUM = 'topic:viewnum.';
    const TAGICON = 'tag:icon.'; //标签icon
    const TAGMEMBERICON = 'tagMember:icon.'; //用户标签
    const RENDERTAGMEMBERICON = 'rendertagMember:icon.'; //用户标签
    const BESTOPINIONBYBRAND = 'bestopinion:brand.'; //精选想法 brand纬度
    const BESTOPINIONBYTOPIC = 'bestopinion:topic.'; //精选想法 topic纬度
    const ENTEREDBRANDLIST = 'EnteredBrandListData';
    const ACTIVEMEMBERS = 'activemembers'; //活跃用户集合
    const NOT_USED_POST_SET='notUsedPostIdSet'; //未使用的post id集合

    //店铺的Post列表
    const SHOP_TOP_POSTS = "shopTop:posts.";
    const ENTER_BRAND_MANAGER_OPINION_CERT = 'brand_manage_opinion_cert.';

    const INVITE_CODE_SET = 'inviteCodeSet'; //邀请码集合
    const MEMBER_INVITE_CODE = 'memberInviteCode.'; //用户邀请码
    const VIRTUAL_WINNING_LIST = 'virtualWinningList'; //虚拟中奖信息

    const PUSH_FANS_TIMES = 'pushFansTimes:'; //推送粉丝剩余次数
    const BLOCK = 'block:member.';//黑名单集合
    const RECOMMENDUSER='recommend_user'; //推荐用户集合
    const MEMBER_HISTORY_LOG ='memberHistoryLog';
    const SAMEHOBBY = 'samehobby.';
    const GROUPASSOCIATEDCOUNTRY = 'group:country.';//圈子关联国家
    //提现规则
    const SYSTEM_MENU_LIST = 'home:menu.';
    //国家圈子
    const COUNTRYASSOCIATEDGROUP = 'country:group.';
    const CHECK_SHOP_BUSINESS_YUNXIN_ACCOUNT = 'checkShopYunxinAID:';
    const CHECK_BRAND_BUSINESS_YUNXIN_ACCOUNT = 'checkBrandYunxinAID:';

    //图片标签列表
    const POST_PICTURE_LABEL = 'post_picture_label';
    const APP_FEATURES_LABEL = 'app_features_label';

    //举报人的原因
    const APP_REPORT_TUPE = 'app_report_type';
    const APP_DISCOVER_LABEL = 'app_discover_label';
    const MEMBER_DAILY_VIEW_POST_RECORD = 'mdvpr:';// 用户每天浏览的post记录
    const EXCHANGE_PROCESS = 'exchange_process.'; //兑换礼品进程
    const TMP_RENDER_POST = 'tmpRenderPost.'; //临时post渲染数据
    const QUESTION_ANSWER_NUM='answernum:'; //question 的answer num
    const TOP_POST = 'top:post';
    const TOP_QA = 'top:qa';
    const TOP_LOCATION = 'top:location';
    const TOP_HOTNEWS = 'top:hotnews';
    const ATTENTION_SET_INIT = 'attention:setinit.';
    const ATTENTION_SORT_SET = 'attention:sortset.';
    const LEVEL_INFO = 'levelinfo'; //单个level缓存
    const LEVEL_LIST = 'levellist'; //level顺序集合
    const EXCHANGE_GOODS_LIST = 'exchangeGoodsList';
    const CHALLENGE_LIST = 'challengelist';
    const CHALLENGE_INFO = 'challengeinfo';
    const TOPHOTNEWS = 'top:hotnews';//hotnews置顶
    const REWARD = 'activereward:';// 活动奖励 activereward:active_type:award_type
    const POST_INTERACTIVE_OFFSET = 'post:interactive_offset.';

    //投票相关的redis项
    const VOTE_START_TIME = "vote_start_time"; // 开始时间
    const VOTE_END_TIME = "vote_end_time"; //  结束时间
    const VOTE_BRAND_LIST = "vote_brand_list"; //  投票品牌说明

    const BEHAVIOR_AWARD_LIST = "award:3_list";
    const BEHAVIOR_REAWARD_LIST = "reward:3_";

    const RETRIEVEPASSWORD = 'retrievePassword:'; //找回密码
    const PASSWORDCHECK_DAILY = 'dailypasswordError';

    const IOS_PUB_POST_SET = 'ios_pub_postset';
    const IOS_PUB_POST_DETAIL = 'ios_pub_post_detail';
    const IOS_PUB_COMMENT_SET = 'ios_pub_commentset';
    const IOS_PUB_COMMENT_DETAIL = 'ios_pub_comment_detail';
    const RUN_APP_TIMES = 'runAppTimes:'; //用户的app启动次数
    /**
     * --------------------------------------------------------------------------
     * db1
     * --------------------------------------------------------------------------
     */
    //用户信息
    const MEMBER = 'member:member.';
    //验证码：重置密码
    const RESET_PASS = 'code:resetpass.';
    const VERIFY_EMAIL = 'code:verifyemail.';
    //品牌模型数据
    const BRAND = 'brand_model';
    const BRAND_TIME = 86400;
    const VAPE_BRAND = 'vape:brand.';
    const VAPE_MODEL = 'vape:model.';
    const VAPE_TEMP_MODEL = 'vape:temp.same.';
    //关注 集合方式存储
    const FOLLOWING = 'follow:following.';
    const FOLLOWERS = 'follow:followers.';
    const FRIENDS = 'follow:friends.';
    //国家 区域
    const NATION = 'nation:nation.';
    const NATION_LIST = 'nation.list';
    const NATION_LIST_TIME = 86400;
    // participate
    const PARTICIPATE = 'participate:part.';
    const ALL_ACCOUNT = 'all_account';
    const VAPE_BRANDS = 'vape_brands';
    const VAPE_MODELS = 'vape_models';
    //comment praise
    const COMMENTPRAISE = 'comment_praise.';
    // post praise
    const POSTPRAISE = 'post:praise.';
    const POSTPCOLLECT = 'post_collect:';
    //活动挑战
    const SUGGEST_CHALLENGE='challenge:suggest';
    const SENSITIVEWORDSREG = 'sensitivewords:reg'; //敏感词
    const QUESTION_FOLLOW = 'question:follow.'; //问题的关注用户集合
    const MEMBER_FOLLOW_QUESTION = 'mf:q.'; //'member:follow:question.'; //问题的关注用户集合
    const ANSWER_PRAISE = 'answer:praise.'; //回答点赞
    const ANSWER_STEP = 'answer:step.'; //回答踩
    const MINE_ANSWER = 'answer:member.';//用户回答的问题集合
    const FOLLOWHISTORY='follow:history';//历史关注数据
    const NEWS_SORT_SET='news:sortset'; //按照权重排序的news数据
    const QA_SORT_SET='qa:sortset'; //按照权重排序的QA数据
    const CHALLENGE_SORT_SET='challengeSortSet'; //按照权重排序的Challenge数据
    //QA回答列表 有序集
    const QA_ANSWER_LIST='qa_answer:list';
    //QA评论列表 有序集
    const QA_ANSWER_COMMENT_LIST='qa_answer_comment:list';
    const APP_VERSION = 'app_version'; //app 最新版本信息
    const POST_CHALLENGE_ID = 'post:challenge'; //post和challengeID对应关系
    const ENTERED_BRAND = 'enteredbrand:'; //入驻品牌信息
    const ENTERED_BRAND_EXPIRE = 86400; //入驻品牌信息
    const LAST_OPINION_ID = 'lastopinion:'; //（想法管理列表）上一次浏览的post id记录
    //用户年度数据统计
    const MEMBER_YEAR_TIME_LINE = "memberYear:2018_2019_yeear.";

    //敏感词 - 关键字
    const SENSITIVE_WORDS_WORD = "sensitivewords:word";
    //敏感词 - url
    const SENSITIVE_WORDS_URL = "sensitivewords:url";
    //禁用设备号
    const BLOCK_SERIAL_NUMBER = 'block_serial_number';
    //禁用ip列表
    const BLOCK_IPS = 'block_ip';

    const END_ARN = 'endArn:';
    const POST_EXT = 'post:ext.'; // post extends (praise_num, comments_num)


    const POST_RECOMMEND_LIST = "post:recommend_list.";
    const MEMBER_COLLECT_SORT_SET = 'mpcss'; //member post collect sort set

    const MEMBER_TIMEZONE = "membertimezone:member.";
    const AWARD_VERIFY_KEY_FOR_MOTHER = 'award_verify_key';
    const COMMENT_PRAISE_NUM = 'commentpraisenum:';

    //投票品牌列表Key
    const VOTE_LISTKEY =  "vote:list";
    //个人投票项
    const VOTE_MEMBER = "vote:member.";

    const VOTE_SERIALNUMBER = "vote:serial_number.";
    //品牌投票项
    const VOTE_BRAND = "vote:brand.";
    //品牌投票计数
    const VOTE_BRAND_VOTE_NUM = "vote:brand.vote_num.";
    //投票的设备集合
    const VOTE_SERIAL_NUMBERS_SETS = "vote:serial_numbers.sets";
    //设置投票领奖的集合
    const VOTE_REWARD_SETS = "vote:reward_members";
    //用户地址信息
    const MEMBER_ADDRESS_LIST = 'address:all.';
    const MEMBER_ADDRESS_DEFAULT = 'address:default.';
    const NOTICE_DETAIL = 'notice:detail.';
    const NOTICE_LIST = 'notice:list';

    /**
     * --------------------------------------------------------------------------
     * db2
     * --------------------------------------------------------------------------
     */
    //google fcm token
    const MEMBER_FCM = 'google:fcm.';
    const POSTNEWPRAISE = 'post:newpraise.';
    const PROJECTCONFIG='project:conf.';
    const MEMBERALLPRAISEPOST='postPraise:history';//用户已经点赞的post的集合

    //提现规则
    const WALLET_AGREEMENT = 'project:conf.wallet_agreement';
    //提现说明
    const WALLET_ENCASHMENT_EXPLANATION= 'project:conf.wallet_encashmentExplanation';
    //单次最大提现额度
    const WALLET_MAX_ENCASHMENT = 'project:conf.wallet_maxEncashment';
    //申请店长 规则
    const REGULATIONS_SHOP = "project:conf.regulations_shop";
    //申请品牌管理员 规则
    const REGULATIONS_BRAND = "project:conf.regulations_brand";
    //固定提现日
    const WALLET_ENCASHMENT_DAY = "project:conf.wallet_encashment_day";

    #3、2、1
    //签到新手引导
    const SIGN_GUIDE_TIP = "project:conf.sign_guide_tip";
    //签到说明
    const SIGN_ILLUSTRATE = "project:conf.sign_illustrate";
    //用户等级 可签到次数配置
    const RETROACTIVE_COUNT= "project:conf.retroactive_count";

    //签到 风机 - 奖励积分
    const ONE_TO_THREE_SMALL = "project:conf.one_to_three_small";
    const ONE_TO_THREE_BIG = "project:conf.one_to_three_big";
    const FOUR_TO_SEVEN_SMALL = "project:conf.four_to_seven_small";
    const FOUR_TO_SEVEN_BIG = "project:conf.four_to_seven_big";

    //签到提示内容模板

    //过去， 和 当天 已经签到
    const SIGN_ALREADY_TIP = "project:conf.sign_already_tip"; //普通
    const SIGN_ALREADY_EXTRA_TIP = "project:conf.sign_already_extra_tip"; //额外奖励

    //当天未签到
    const SIGN_TIP = "project:conf.sign_tip"; //普通
    const SIGN_EXTRA_SCORE_TIP = "project:conf.sign_extra_score_tip";  //有奖励

    //当天签到 （操作提示）
    const SIGN_SUCCESS_TIP = "project:conf.sign_success_tip";
    const SIGN_EXTRA_SCORE_SUCCESS_TIP = "project:conf.sign_extra_score_success_tip";

    //补签
    const RETROACTIVE_TIP = "project:conf.retroactive_tip";
    const RETROACTIVE_EXTRA_TIP = "project:conf.retroactive_extra_tip";

    //未来
    const FUTURE_TIP = "project:conf.future_tip"; //天数
    const FUTURE_SCORE_TIP = "project:conf.future_score_tip";  //普通
    const FUTURE_EXTRA_TIP = "project:conf.future_extra_tip";

    //给获得实物奖励的用户发送 提示信息
    const SIGN_PRODUCT_NAME = "project:conf.sign_product_name";

    //用户获得奖品后的信息窗提示
    const SIGN_ALREADY_PRODUCT_NAME = "project:conf.sign_already_product_name";

    //用户当天是否阅读过 签到指引
    const MEMBER_DAY_TIPS_SHOW = "member:dayTipsShow.";

    const TOKEN_MAPPING = 'tokenMapping:';
    const PUSH_TOKEN = 'push_token:';

    //用户昨天的post数量
    const MEMBER_YESTERDAY_POST_NUM = "member:yesterdayPostNum.";
    //用户昨天主页昨天访问量
    const MEMBER_PERSONALPAGE_VISIT_NUM = "member:personalpageVisitNum.";
    //用户昨天互动的数量
    const MEMBER_CONVERSATION_NUM = "member:conversationNum.";

    //用户的 【新手指引的状态】
    const MEMBER_GUIDE_STATUS = "memberGuide:status.";

    const MEMBER_DEVICE_LIBRARY = "member:device_library.";

    //举报
    const APP_REPORT_TYPE = "app_report_type";
    //举报评论情节不严重次数
    const REPORT_COMMENT_IS_SERIOUS= 'project:conf.report_comment_is_serious';
    //举报评论情节严重次数
    const REPORT_COMMENT_NOT_SERIOUS= 'project:conf.report_comment_not_serious';
    //举报post情节不严重次数
    const REPORT_POST_IS_SERIOUS= 'project:conf.report_post_is_serious';
    //举报post情节严重次数
    const REPORT_POST_NOT_SERIOUS= 'project:conf.report_post_not_serious';
    //举报用户情节不严重次数
    const REPORT_MEMBER_IS_SERIOUS= 'project:conf.report_member_is_serious';
    //举报用户情节严重次数
    const REPORT_MEMBER_NOT_SERIOUS= 'project:conf.report_member_not_serious';

    //官方账号ID
    const OFFICIAL_MEMBER_ID = "project:conf.official_member_id";
    //官方邮箱
    const OFFICIAL_EMAIL = "project:conf.official_email";


    //母亲节抽奖 提示
    const MOTHER_SUCCESS_POINT_MSG = "project:conf.mother_success_point_msg";
    const MOTHER_SUCCESS_PRODUCT_MSG =  "project:conf.mother_success_product_msg";

    //母亲节抽奖 预置提示
    const EIGHTEEN_TIP =  "project:conf.eighteen_tip";
    const CONSUME_TIP =  "project:conf.consume_tip";
    const CONSUME_TIP_VALUE =  "project:conf.consume_tip_value";
    const PARTICIPATE_TIP =  "project:conf.participate_tip";

    //投票内容提示
    const VOTE_REWARD_TIP = "project:conf.vote_reward_tip"; //  奖励提示
    const VOTE_REWARD_VALUE = "project:conf.vote_reward_value"; //  获取奖励值
    const VOTE_EXPLAIN = "project:conf.vote_explain"; //   说明

    const INVITATION_SCORE = 'project:conf.invitation_score';  //邀请获得积分

    const EVENT_LOTTERY_REAL_AWARD_TIP =  "project:conf.event_lottery_real_award_tip";

    //抓娃娃 评论滚每日抽奖次数
    const EVENT_LOTTERY_COMMENTS_TIMES = "project:conf.event_lottery_comments_max_times";
    //抓娃娃 分享app每日抽奖次数
    const EVENT_LOTTERY_SHAREAPP_TIMES = "project:conf.event_lottery_shareapp_max_times";
    //抓娃娃 访问新闻每日抽奖次数
    const EVENT_LOTTERY_VISITNEWS_TIMES = "project:conf.event_lottery_visitnews_max_times";
    //抓娃娃 点赞新闻每日抽奖次数
    const EVENT_LOTTERY_PRAISENEWS_TIMES = "project:conf.event_lottery_praisenews_max_times";

    /**
     * --------------------------------------------------------------------------
     * db3
     * --------------------------------------------------------------------------
     */
    //participate我参与的信息
    const PARTICIPATE_LIKES = 'p:likes:';//我收到的点赞
    const PARTICIPATE_COMMENT_TO = 'p:cto:';//我收到的评论
    const PARTICIPATE_COMMENT_FROM = 'p:cfrom:';//来自我的评论
    const PARTICIPATE_ATTENTION_COMMENT = 'p:ac:';//在评论中@
    const PARTICIPATE_ATTENTION_POST = 'p:ap:';//在post中@
    const PARTICIPATE_QA = 'p:qa:';//QA msg信息流
    const PARTICIPATE_FOLLOW = 'p:follow:';//follow msg信息流
    const PARTICIPATE_FOLLOWINIT = 'pfollowinit';//follow msg信息流
    const COMMENTINFO='comment:info';
    const POSTINFO='post:info';
    const QUESTIONINFO='qa:info';
    const BRANDTOPIC_MEMBER_PAGE1 = 'brandtopic:member_page.'; //用户查看第一页的数据位置
    const BRAND_MEMBER_GROUP = 'brandmember:group.'; //用户加入品牌的的状态（无序集）
    const BRANDTOPIC_VIEWNUM = 'brandtopoc:viewnum.'; //话题查看数量


    //menu/menuListSub 内容缓存
    const MENU_SUBLIST_BY_NAME = "submenu:menulist.";

    /**
     * --------------------------------------------------------------------------
     * db4 MQ
     * --------------------------------------------------------------------------
     */
    //动态评论MQ
    const COMMENTS_MQ = 'commentsMQ';
    //ios MQ
    const IOS_MQ='iosMQ';
    //job管道处理业务类型
    //发送邮件队列
    const MQ_Mail = 'MQ_mail';  //忘记密码 //验证密码
    const MQ_PUSH = 'MQ_push'; //推送
    const MQ_POST_SYNC = 'MQ_post_sync'; //post同步至第三方
    //导入post数据时间更新MQ
    const MQ_UPDATEPOSTTIMEMQ = 'MQ_updateposttime';
    //导入comment数据时间更新MQ
    const MQ_UPDATECOMMENTTIMEMQ = 'MQ_updatecommenttime';
    const MQ_VIDEOTRANS='MQ_videotrans';
    const JOBDEALLIST='jobDealList';
    const AVATARMQ='avatarMQ';
    const SYSTEMPUSH='systempush';
    const MQ_POST_CACHE='MPC'; // MQ_POST_CACHE
    const MQ_FOLLOWQUESTION = 'questionMQ'; //question Follow MQ
    const MQ_ANSWER_PRAISE = 'answerPraiseMQ'; //回答点赞数据库处理MQ
    const MQ_ANSWER_STEP = 'answerStepMQ';//回答踩数据库处理MQ
    const SYNCPRAISEDBMQ = 'syncPraiseDBMQ';//同步点赞数据消息队列
    const SYNCFOLLOWDBMQ = 'syncFollowDBMQ';//同步关注数据消息队列
    const GETPOINT_MQ = 'getpointMQ'; //记录用户行为异步获取积分MQ
    const PUB_POST_MQ = 'postMongoDataMQ';
    const BUSINESS_NEW_POST_PUSH = 'businessNewPostMQ'; //商业级用户发贴推送给粉丝
    const FAILED_POST_ES_ID = 'failedPostESMQ'; // 构建post es数据失败
    const FCM_TOKEN_MQ = 'fcmtokenMQ'; //fcmtoken更新队列
    const FAILED_COMMENT_ES_ID = 'failedCommentESMQ';  // 构建comments ES数据失败的

    //用户贡献计算
    const CONVERSATION_MQ = 'conversationMQ';

    const HOTNEWS_READ_NUM_MQ = "hotnews:read_num.MQ";

    //用户抽奖通知消息队列
    const LOTTERY_NOTICE_MQ = 'lotteryNoticeMQ';
    const ONLINE_TIME_CNT = 'onlineTimeMQ';
    const ADS_DATA_CNT='adsDataCntMQ'; //广告数据统计
    const VIDEO_TRANS_CODER_MQ = 'videoTransCoderMQ';
    const MEMBER_ES_SERVICE = 'MemberEsDataServiceMQ';
    const MEMBER_ES_SERVICE_SET = 'MemberEsDataServiceSet';
    const AWS_SNS_ARN_MQ = 'AwsSnsArnMQ';
    const VIDEO_PLAY_MQ = 'videoPlayTimeMQ'; //视频播放时间记录MQ
    const POST_VIEW_RECORD_MQ = 'postViewRecordMQ'; //记录post浏览记录MQ
    const ERROR_LOG_MQ = 'errorMQ'; //记录错误信息MQ
    const UPDATE_USER_YUNXIN_INFO = 'updateUserInfoMQ';
    const POST_OFFSET_MQ = 'postOffsetMQ';
    const REKOGNITION_MQ = 'RekognitionMQ';
    const RETRIEVEPASSWORD_MQ = 'retrievePasswordMQ';

    const EXCHANGE_GOODS_MQ = 'exchangegoodsMQ';
    const EXCHANGE_RESULT = 'exchange:result.';

    const FRIEND_LIST_MQ = 'friendMQ';
    const YUNXIN_MSG_CC_MQ = 'yunxinMsgCcMQ'; //云信信息抄送
    /**
     * --------------------------------------------------------------------------
     * db5
     * --------------------------------------------------------------------------
     */
    //用户签到
    const MEMBER_SIGNBOARD = 'member:sign.board.';


    /**
     * --------------------------------------------------------------------------
     * db6
     * --------------------------------------------------------------------------
     */

}